package org.blogwu.learn.threadLearn.LockSupport学习;

import java.util.concurrent.locks.LockSupport;

public class Demo1 {
    public static void main(String[] args) {
        Object oo = new Object();
        Thread t1 = new Thread(() -> {
            try {
                Thread.sleep(2000);

            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            LockSupport.park(oo);
            System.out.println("继续执行");
        });
        t1.start();
//       LockSupport.unpark(t1);


    }
}
